package Exception;
import java.util.Scanner;
class Test_Exception{
    void test() {
        int n = 0,m = 0,t = 1000;
        int[] a=new int[4];
        int[] b=null;
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        try {
            m = Integer.parseInt(str);
            t=t/m;
            a[m]=m;
            b[0]=m;
        }
        catch (NumberFormatException e){
            System.out.println("数据格式异常");
        }
        catch (IndexOutOfBoundsException e){
            System.out.println("越界异常");
        }
        catch (ArithmeticException e){
            System.out.println("算术运算异常");
        }
        //catch部分需要你们自己填
    }
}

public class test05{

    public static void main(String[] args) {
        Test_Exception te=new Test_Exception();
        te.test();
    }
}
/* 请在这里编写完整 Test_Exception类 */
